<?php 
class User extends AppModel {
	var $name = 'User';
	
    function valid($username,$password){
        return $this->find('first',array('conditions'=>array('User.username'=>$username,'User.password'=>md5($password))));
    }
	
}
